<?php

$miArray = array(
    array(
        "Codigo" => "1000000",
        "Nombre" => "Activo",
        "Saldo" => "0",
        "Cargos" => "0",
        "Abonos" => "0",
        "children" =>
        array(
            array(
                "Codigo" => "1100000",
                "Nombre" => "Circulantes disponibles",
                "Saldo" => "0",
                "Cargos" => "0",
                "Abonos" => "0"
            )
        )
    ),
    array(
        "Codigo" => "2000000",
        "Nombre" => "Pasivo",
        "Saldo" => "0",
        "Cargos" => "0",
        "Abonos" => "0",
        "children" =>
        array(
            array(
                "Codigo" => "2100000",
                "Nombre" => "Circulante",
                "Saldo" => "0",
                "Cargos" => "0",
                "Abonos" => "0"
            )
        )
    )
);
print_r(json_encode($miArray));
?>
